#include "QuestionColonOperatorNode.h"
#include "Output/Console.h"
void CQuestionColonOperatorNode::DebugPrint(int32_t InDepth)
{
    //print depth
    for (int32_t i = 0; i < InDepth; i++)
    {
        WH::Print(U"\t");
    }

    WH::Print(U"(");
    Condition->DebugPrint(0);
    WH::Print(U" ? ");
    TrueBranch->DebugPrint(0);
    WH::Print(U" : ");
    FalseBranch->DebugPrint(0);
    WH::Print(U")");
}

std::shared_ptr<CScriptToken> CQuestionColonOperatorNode::GetFirstToken()
{
    return Condition->GetFirstToken();
}
